#include "winThreadLogger.h"


DWORD WINAPI LoggerMessages(PVOID pvParam){
	DWORD test = GetCurrentThreadId();
	Logger a;
	for (int i = 0;i<100;i++)
	{
		a.Debug("Hello from thread %5ul value = %5d",test,i);
	}
	return 0;
}




int _tmain(int argc, _TCHAR* argv[])
{
	Logger main;

	for (int i = 0;i<100;i++)
		CreateThread(NULL,0,LoggerMessages,NULL,NULL,NULL);
	Sleep(10000);
	main.Debug("that's all");
	return 0;
}